package cn.com.bluemoon.daps.api.standard;

import cn.com.bluemoon.daps.api.standard.factory.RemoteStandardIndexFallbackFactory;
import cn.com.bluemoon.daps.common.constant.ServiceNameConstants.DapsApiStandard;
import cn.com.bluemoon.daps.common.domain.ResultBean;
import cn.com.bluemoon.daps.standard.entity.DapStandardIndex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 标准指标服务
 *
 * @author Jarod Kong
 */
@FeignClient(value = DapsApiStandard.SERVICE, fallbackFactory = RemoteStandardIndexFallbackFactory.class)
@RequestMapping(DapsApiStandard.BASE_URI + DapsApiStandard.API_INDEX_STD)
@ApiIgnore
public interface RemoteStandardIndexService {

    @GetMapping("/getById")
    public ResultBean<DapStandardIndex> getById(@RequestParam("indexId") String id);

    @GetMapping("/relatedBizLineId")
    public ResultBean<Boolean> relatedBizLineId(@RequestParam("bizLineId") Integer bizLineId);
}
